home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DIAGTOOL / JPRDY101.ZIP;1 / CACHRISK.TXT < prev    next >
Encoding:
Text File  |  1993-08-11  |  5.3 KB  |  93 lines

  1. Super PC-Kwik: Still the Safest, Fastest Disk Cache
  2.  
  3. PC-Kwik Corporation has always recognized that reliability is the most
  4. important issue in designing a disk cache.  There are two options that
  5. can make a disk cache faster, but can also increase the risk of data
  6. loss: time-delayed writes and request sorting.    Super PC-Kwik, our disk
  7. cache, offers both of these options, but not as a default configuration.
  8. We strongly feel that a disk cache's default behavior should not increase
  9. the risk of substantial data loss.
  10.  
  11. Time-delayed writes and request sorting are, however, automatically
  12. activated by SMARTDrive, the Microsoft disk cache that's bundled with
  13. DOS 6 and Window 3.1, as well as by most other commercially marketed caches.
  14. Although Microsoft has sold millions of copies of DOS 6.0, we found it
  15. interesting when reports of system failures, crashes, irretrievable data loss,
  16. etc. were being linked to DOS 6.0.  And we found it particularly interesting
  17. when InfoWorld started attributing some of these problems specifically to
  18. SMARTDrive.
  19.  
  20. "Most of the problems eliminated were associated with something DOS 6.0
  21. does that 5.0 didn't: automatic installation of the SMARTDrive disk cache
  22. without notifying the user."
  23. InfoWorld, May 10, 1993
  24.  
  25. "I strongly urge you to stop using SMARTDrive.  I believe that this is the
  26. source of the 'after a few weeks' DoubleSpace corruption problem."
  27. Steve Gibson, InfoWorld, May 10, 1993
  28.  
  29. Time-delayed writes and request sorting pose substantial risks:
  30.  
  31. 1.    Time-delayed writes.  Users of PCs normally assume that when
  32. DOS prompt is displayed and none of their disk lights is on, any disk
  33. activity is complete.  Many users will further assume that it is
  34. therefore safe to turn their computer off or to reboot.  When a disk cache
  35. has time-delayed writes enabled, as is SMARTDrive's and other disk
  36. caches' default setting, this is not a safe assumption.  In addition, there
  37. is a chance of a power outage or system hang happening before the data
  38. is safely written to the disk.
  39.  
  40.     The InfoWorld test lab encountered problems with SMARTDrive due to
  41. time-delayed writes.  "Our cold reboot (equivalent to turning the power off)
  42. before SMARTDrive's cache had finished flushing was pilot error.  But
  43. SMARTDrive default to "lazy writes" and its immediate return of the DOS
  44. prompt is a data loss waiting to happen for many users.  Although the
  45. performance gain from delayed writes is substantial, the cache software that
  46. competes with SMARTDrive can be configured so the user is not returned to the
  47. DOS prompt before the cache is fully flushed.  SMARTDrive has no such
  48. configuration option."  (Infoworld, May 3, 1993)
  49.  
  50.     Not only is Super PC-Kwik fully configurable as InfoWorld reported,
  51. but Super PC-Kwik automatically synchronizes with the DOS prompt and does
  52. not use time-delayed writes unless configured to do otherwise.    The user
  53. does not have to worry about the cache not being fully flushed when
  54. the DOS prompt appears.  Once the DOS prompt appears, all disk activity is
  55. complete; the user is free to turn the computer off or reboot without the
  56. risk of data loss or corruption.
  57.  
  58. 2.    Request sorting.  This feature involves changing the time order
  59. of writing sectors to the disk so sectors can be written in physical order.
  60. Assuming that all writes are complete, there is no functional difference
  61. between FIFO (first in, first out) processing and request sorting of writes
  62. because all the data ends up on the disk in the originally intended locations.
  63. But, if a hardware or software failure occurs during disk writing, the
  64. ability to recover from the failure may be compromised.  A well-designed
  65. database (or other) program takes great care in the order that its index
  66. and data records are written.  This allows the program to recover from a
  67. crash by eliminating questionable records, without compromising the
  68. integrity of the database as a whole.  When a disk cache changes the time
  69. order of writes, the assumptions made by the application are no longer true
  70. and may prevent the application program from recovering from a crash.
  71.  
  72.     The DOS FAT and directory structures can be thought of as a special
  73. type of database.  When DOS creates a file, it carefully postpones pointing
  74. the new directory entry at the newly allocated disk clusters until the FAT
  75. has been updated with the allocated clusters.  If a disk cache is used that
  76. changes the order of events and a system crash occurs, the directory entry
  77. may point to disk clusters that are marked as unallocated in the FAT.  If
  78. the system continues to be used, these same clusters will be allocated to
  79. another file, and cross-linked files will result.  Cross-linked files are
  80. among the most difficult problems to correct because two files share the
  81. same space on the disk.  One or both of the files will be corrupted with
  82. no reliable technique for recovering the lost data.
  83.  
  84. Unlike SMARTDrive and other third party caches, Super PC-Kwik's standard
  85. mode of operation is to immediately begin processing all write requests on a
  86. strict FIFO basis.  Users who are knowledgeable about time-delayed writes and
  87. request sorting can enable them and obtain additional performance, but only if
  88. they choose to take that risk.
  89.  
  90. Super PC-Kwik does not risk users' data with time-delayed writes and request
  91. sorting in its default mode.  Super PC-Kwik has always been reliable, safe,
  92. and fast -- automatically.
  93.